package cn.mastor.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2022-12-10
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("t_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 头像
     */
    @TableField("profile_picture")
    private String profilePicture;
    /**
     * 游戏名
     */
    @TableField("game_id")
    private Integer gameId;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 音频
     */
    private String voice;
    /**
     * 0为普通用户，1为陪玩用户
     */
    private Integer state;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
